//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Resource Application Block
//===============================================================================

using System;
using System.Management.Instrumentation;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Manageability;

namespace EntLibContrib.Resource.Configuration.Manageability
{
	/// <summary>
	/// Represents the configuration information from a 
	/// <see cref="EntLibContrib.Resource.Configuration.ResourceManagerData"/> instance.
	/// </summary>
	/// <seealso cref="EntLibContrib.Resource.Configuration.ResourceManagerData"/>
	/// <seealso cref="NamedConfigurationSetting"/>
	/// <seealso cref="ConfigurationSetting"/>
	[InstrumentationClass(InstrumentationType.Instance)]
	public class ResourceManagerSetting : NamedConfigurationSetting
	{
		#region Fields
		private String resourceProvider;
		#endregion

		#region Properties
		/// <summary>
		/// Gets the name of the resource provider for the represented configuration object.
		/// </summary>
		/// <seealso cref="EntLibContrib.Resource.Configuration.ResourceManagerData.ResourceProvider">ResourceManagerData.ResourceProvider</seealso>
		public String ResourceProvider
		{
			get { return resourceProvider; }
			internal set { resourceProvider = value; }
		}
		#endregion

		#region Construction
		internal ResourceManagerSetting(String name, String resourceProvider)
			: base(name)
		{
			this.resourceProvider = resourceProvider;
		}
		#endregion
	}
}
